<template>
	<view class="px-4">
		<wh-form ref="formRef" :model="model" :config="configForm.config" :columns="configForm.columns">
			
			<template v-slot:account>
				<view>1111111111</view>
			</template>
		</wh-form>

		<uv-button class="mt-4" :color="CFG.color.primary" type="primary"  @click="submit">提交</uv-button>
	</view>
</template>

<script setup>
	import configForm from './configForm.js'
	const formRef = ref(null)


	
	const model = ref({
		id:982,
		account:'aaaa',
		telephone:'19255667788',
		sex:1,
		notes:'test'
	})
	
	
    const submit = () => {
		formRef.value.onSubmit()
        // form.value.onSubmit()
    }
</script>

<style scoped lang="scss">

</style>
